package com.lanou.pianke.admin.service.impl;

import com.alibaba.fastjson.JSON;
import com.lanou.pianke.articlecomment.entity.ArticleComment;
import com.lanou.pianke.admin.mapper.ArticleCommentMapper;
import com.lanou.pianke.admin.service.ArticleCommentService;
import com.lanou.pianke.common.utils.JsoupUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleCommentServiceImpl implements ArticleCommentService {
    @Autowired
    private ArticleCommentMapper articleCommentMapper;

    @Override
    public List<ArticleComment> showAll() {
        return articleCommentMapper.showAll();
    }

    @Override
    public void deleteById(String id) {
        articleCommentMapper.deleteById(id);
    }

    @Override
    public List<ArticleComment> selectIdByContentId(String contentId) {
        return articleCommentMapper.selectIdByContentId(contentId);
    }

    @Override
    public void deleteByContentId(String contentId) {
        articleCommentMapper.deleteByContentId(contentId);
    }

    @Override
    public void deleteByUid(Long uid) {
        articleCommentMapper.updateStatusByUid(uid);
    }


}
